export default {
  model: {
    event: 'change',
    prop: 'pLoading'
  },

  props: ['date', 'username', 'pLoading'],

  data() {
    return {
      filters: {
        username: this.username,
        date: this.date,
      }
    };
  },


  watch: {
    date(date) {
      this.filters.date = date;
    },
    loading(loading) {
      this.$emit('change', loading);
    }
  },
};